package com.yeyuanqi.web.admin;

import com.yeyuanqi.service.ICommentService;
import com.yeyuanqi.vo.CountVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class CountController {

    @Autowired
    private ICommentService commentServiceImpl;

    //跳转评论统计页面
    @GetMapping(value = "/count")
    public CountVO countComment(){
        CountVO countVO = commentServiceImpl.selectCommentCount();
        return countVO;
    }
}
